# coding: utf-8

import arrow
from datetime import timedelta, datetime

end_date = datetime.now()
begin_date = end_date + timedelta(days=-1)

begin_timestamp, end_timestamp = int(end_date.timestamp() * 1000), int(begin_date.timestamp() * 1000)

print('begin_date=%s' % begin_date)
print('end_date=%s' % end_date)

#
# begin_timestamp = arrow.now().shift(days=-1).timestamp * 1000
# end_timestamp = arrow.now().timestamp * 1000
#
# print('begin_timestamp = %s' % begin_timestamp)
# print('end_timestamp = %s' % end_timestamp)
